package com.ratta.supernote.note.plugincore.ui.menu;

import kotlin.jvm.Transient;

/**
 * Display parameters after menu button click
 */
public class PluginMenuItemShowData {
    /**
     * Region display state: No interface display
     */
    @Transient
    public static final int REGION_TYPE_NO_SHOW = 0;
    /**
     * Region display state: Display as dialog
     */
    @Transient
    public static final int REGION_TYPE_SHOW_DIALOG = 1;
    /**
     * Region display state: Display fullscreen in crop state, plugin page will be dismissed when returning to notes after opening other apps
     */
    @Transient
    public static final int REGION_TYPE_SHOW_FULL = 2;
    /**
     * Region display state: Display fullscreen without dismissing, different from crop-like states, fullscreen interface won't be dismissed when returning to notes after opening other apps
     */
    @Transient
    public static final int REGION_TYPE_SHOW_FULL_NO_DISMISS = 3;

    /**
     * Plugin display area type
     * 0: No interface display needed
     * 1: Display as dialog
     * 2: Display fullscreen
     * 3: Display fullscreen, won't be dismissed
     */
    private int regionType;

    /**
     * Region width in dp
     */
    protected int regionWidth = 0;


    /**
     * Region height in dp
     */
    protected int regionHeight = 0;

    public PluginMenuItemShowData() {
    }

    public PluginMenuItemShowData(int regionType, int regionWidth, int regionHeight) {
        this.regionType = regionType;
        this.regionWidth = regionWidth;
        this.regionHeight = regionHeight;
    }

    public int getRegionType() {
        return regionType;
    }

    public void setRegionType(int regionType) {
        this.regionType = regionType;
    }

    public int getRegionWidth() {
        return regionWidth;
    }

    public void setRegionWidth(int regionWidth) {
        this.regionWidth = regionWidth;
    }

    public int getRegionHeight() {
        return regionHeight;
    }

    public void setRegionHeight(int regionHeight) {
        this.regionHeight = regionHeight;
    }
}
